Optimal. Leaf size=137 \[ \frac{3}{8} b x \left (8 a^2-4 a b+b^2\right )-\frac{a (2 a+b) (4 a+b) \coth (c+d x)}{8 d}+\frac{b \cosh ^4(c+d x) \coth (c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{4 d}+\frac{b \cosh ^2(c+d x) \coth (c+d x) \left (a (4 a+b)-(4 a-3 b) (a-b) \tanh ^2(c+d x)\right )}{8 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.191937, antiderivative size = 137, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.217, Rules used = {3187, 468, 577, 453, 206} \[ \frac{3}{8} b x \left (8 a^2-4 a b+b^2\right )-\frac{a (2 a+b) (4 a+b) \coth (c+d x)}{8 d}+\frac{b \cosh ^4(c+d x) \coth (c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{4 d}+\frac{b \cosh ^2(c+d x) \coth (c+d x) \left (a (4 a+b)-(4 a-3 b) (a-b) \tanh ^2(c+d x)\right )}{8 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3187
Rule 468
Rule 577
Rule 453
Rule 206
Rubi steps
\begin{align*} \int \text{csch}^2(c+d x) \left (a+b \sinh ^2(c+d x)\right )^3 \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (a-(a-b) x^2\right )^3}{x^2 \left (1-x^2\right )^3} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac{b \cosh ^4(c+d x) \coth (c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{4 d}+\frac{\operatorname{Subst}\left (\int \frac{\left (a (4 a+b)-(4 a-3 b) (a-b) x^2\right ) \left (a+(-a+b) x^2\right )}{x^2 \left (1-x^2\right )^2} \, dx,x,\tanh (c+d x)\right )}{4 d}\\ &=\frac{b \cosh ^4(c+d x) \coth (c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{4 d}+\frac{b \cosh ^2(c+d x) \coth (c+d x) \left (a (4 a+b)-(4 a-3 b) (a-b) \tanh ^2(c+d x)\right )}{8 d}+\frac{\operatorname{Subst}\left (\int \frac{a (2 a+b) (4 a+b)-(4 a-3 b) (a-b) (2 a-b) x^2}{x^2 \left (1-x^2\right )} \, dx,x,\tanh (c+d x)\right )}{8 d}\\ &=-\frac{a (2 a+b) (4 a+b) \coth (c+d x)}{8 d}+\frac{b \cosh ^4(c+d x) \coth (c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{4 d}+\frac{b \cosh ^2(c+d x) \coth (c+d x) \left (a (4 a+b)-(4 a-3 b) (a-b) \tanh ^2(c+d x)\right )}{8 d}+\frac{\left (3 b \left (8 a^2-4 a b+b^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\tanh (c+d x)\right )}{8 d}\\ &=\frac{3}{8} b \left (8 a^2-4 a b+b^2\right ) x-\frac{a (2 a+b) (4 a+b) \coth (c+d x)}{8 d}+\frac{b \cosh ^4(c+d x) \coth (c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{4 d}+\frac{b \cosh ^2(c+d x) \coth (c+d x) \left (a (4 a+b)-(4 a-3 b) (a-b) \tanh ^2(c+d x)\right )}{8 d}\\ \end{align*}
Mathematica [A] time = 1.91726, size = 113, normalized size = 0.82 \[ \frac{\sinh ^6(c+d x) \left (a \text{csch}^2(c+d x)+b\right )^3 \left (12 b \left (8 a^2-4 a b+b^2\right ) (c+d x)-32 a^3 \coth (c+d x)+8 b^2 (3 a-b) \sinh (2 (c+d x))+b^3 \sinh (4 (c+d x))\right )}{4 d (2 a+b \cosh (2 (c+d x))-b)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.03, size = 94, normalized size = 0.7 \begin{align*}{\frac{1}{d} \left ( -{a}^{3}{\rm coth} \left (dx+c\right )+3\,{a}^{2}b \left ( dx+c \right ) +3\,a{b}^{2} \left ( 1/2\,\cosh \left ( dx+c \right ) \sinh \left ( dx+c \right ) -1/2\,dx-c/2 \right ) +{b}^{3} \left ( \left ({\frac{ \left ( \sinh \left ( dx+c \right ) \right ) ^{3}}{4}}-{\frac{3\,\sinh \left ( dx+c \right ) }{8}} \right ) \cosh \left ( dx+c \right ) +{\frac{3\,dx}{8}}+{\frac{3\,c}{8}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.06488, size = 176, normalized size = 1.28 \begin{align*} \frac{1}{64} \, b^{3}{\left (24 \, x + \frac{e^{\left (4 \, d x + 4 \, c\right )}}{d} - \frac{8 \, e^{\left (2 \, d x + 2 \, c\right )}}{d} + \frac{8 \, e^{\left (-2 \, d x - 2 \, c\right )}}{d} - \frac{e^{\left (-4 \, d x - 4 \, c\right )}}{d}\right )} - \frac{3}{8} \, a b^{2}{\left (4 \, x - \frac{e^{\left (2 \, d x + 2 \, c\right )}}{d} + \frac{e^{\left (-2 \, d x - 2 \, c\right )}}{d}\right )} + 3 \, a^{2} b x + \frac{2 \, a^{3}}{d{\left (e^{\left (-2 \, d x - 2 \, c\right )} - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.84056, size = 409, normalized size = 2.99 \begin{align*} \frac{b^{3} \cosh \left (d x + c\right )^{5} + 5 \, b^{3} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{4} + 3 \,{\left (8 \, a b^{2} - 3 \, b^{3}\right )} \cosh \left (d x + c\right )^{3} +{\left (10 \, b^{3} \cosh \left (d x + c\right )^{3} + 9 \,{\left (8 \, a b^{2} - 3 \, b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{2} - 8 \,{\left (8 \, a^{3} + 3 \, a b^{2} - b^{3}\right )} \cosh \left (d x + c\right ) + 8 \,{\left (8 \, a^{3} + 3 \,{\left (8 \, a^{2} b - 4 \, a b^{2} + b^{3}\right )} d x\right )} \sinh \left (d x + c\right )}{64 \, d \sinh \left (d x + c\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.36316, size = 257, normalized size = 1.88 \begin{align*} \frac{3 \,{\left (8 \, a^{2} b - 4 \, a b^{2} + b^{3}\right )}{\left (d x + c\right )}}{8 \, d} - \frac{2 \, a^{3}}{d{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )}} - \frac{{\left (144 \, a^{2} b e^{\left (4 \, d x + 4 \, c\right )} - 72 \, a b^{2} e^{\left (4 \, d x + 4 \, c\right )} + 18 \, b^{3} e^{\left (4 \, d x + 4 \, c\right )} + 24 \, a b^{2} e^{\left (2 \, d x + 2 \, c\right )} - 8 \, b^{3} e^{\left (2 \, d x + 2 \, c\right )} + b^{3}\right )} e^{\left (-4 \, d x - 4 \, c\right )}}{64 \, d} + \frac{b^{3} d e^{\left (4 \, d x + 4 \, c\right )} + 24 \, a b^{2} d e^{\left (2 \, d x + 2 \, c\right )} - 8 \, b^{3} d e^{\left (2 \, d x + 2 \, c\right )}}{64 \, d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]